﻿using DebugAnalyzer.ObjectModel;

namespace Analysis.Sample
{
    public class SamplePlug : AnalysisPlug
    {
        public override void RunAnalysis()
        {
            // Begin Report and specify Title for Report Island
            BeginReport("Hello World!");

            // Normal report line using fixed width font
            WriteDataLine("This is in Fixed width Font!");

            // Add blank line in the report
            WriteBlankLine();

            // Add Bold line for headings
            WriteHeadLine("Drawing Graph has become easy as well...");

            // Add Graph with color, percentage and label
            WriteGraphLine(GraphColors.LightGreen, 70, "System.String - 70%");
            WriteGraphLine(GraphColors.Orange, 50, "System.Byte[] - 50%");

            // Adding HTML content in the report
            WriteHtmlLine("Testing for HTML content inline like <b>bold</b> <i>italics</i> <u>underline</u> words");

            // Write Recommendation
            WriteRecommendation(ResultSeverity.Error,
                                "Here goes the description for the issue...",
                                "Here goes the recommendation for fixing the issue...");
            
            EndReport();
        }
    }
}
